package com.hhl.flower.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hhl.flower.pojo.entity.Orders;
import com.hhl.flower.pojo.vo.OrderSubmitVO;
import com.hhl.flower.pojo.vo.OrderVO;

import java.util.List;

/**
* @author Liubuzhu
* @description 针对表【orders】的数据库操作Service
* @createDate 2024-06-12 14:38:47
*/
public interface OrdersService extends IService<Orders> {

	/**
	 * 根据状态查询订单列表
	 * @param status
	 * @return
	 */
	List<OrderVO> listByStatus(Integer status);

	/**
	 * 确认收获
	 * @param number
	 */
	void confirmOrde(String number);

	/**
	 * 提交订单
	 * @param sids
	 * @param aid
	 * @param cid
	 * @param amount
	 * @param remark
	 * @return
	 */
	OrderSubmitVO submitOrder(List<Integer> sids, Integer aid, Integer cid, Double amount, String remark);

	/**
	 * 支付订单
	 * @param number
	 * @param payMethod
	 */
	void payOrder(String number, Integer payMethod);

	/**
	 * 取消订单
	 * @param number
	 */
	void cancelOrder(String number);
}
